﻿using System;

namespace Yunli
{
    public class EmptyValue
    {
        public static readonly int Int = int.MinValue;
        public static readonly long Long = long.MinValue;
        public static readonly float Float = float.MinValue;
        public static readonly double Double = double.MinValue;
        public static readonly DateTime DateTime = DateTime.MinValue;
        public static readonly TimeSpan TimeSpan = TimeSpan.MinValue;

        public static bool IsEmpty(int p_value)
        {
            return p_value == Int;
        }

        public static bool IsEmpty(long p_value)
        {
            return p_value == Long;
        }

        public static bool IsEmpty(float p_value)
        {
            return p_value == Float;
        }

        public static bool IsEmpty(double p_value)
        {
            return p_value == Double;
        }

        public static bool IsEmpty(DateTime p_value)
        {
            return p_value == DateTime;
        }

        public static bool IsEmpty(TimeSpan p_value)
        {
            return p_value == TimeSpan;
        }
    }
}